﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FindPolygon.aspx.cs" Inherits="IGIS.Extensions.FindPolygon" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html >

<head>
    <title>פוליגונים</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  <!--  <link rel="stylesheet" href="../../../styles/gt.css" type="text/css" />-->
      <link rel="stylesheet" href="../../styles/viewer.css" type="text/css" />
       

      
  
    <link rel="stylesheet" href="../../styles/bootstrap.min.css">
	<link rel="stylesheet" href="../../styles/bootstrap-responsive.min.css">

    	<link rel="stylesheet" href="../../styles/jquery.ui.all.css">
    	
	<script src="../../scripts/jquery.min.js"></script>
    <script src="../../scripts/jquery-ui.js"></script>

      <script src="../../scripts/bootstrap.js"></script>
    
	<script src="../../scripts/angular.min.js"></script>
    <script src="../../scripts/angular-strap.js"></script>


        <script src="../../scripts/jquery.fileupload.js"></script>
    <script src="../../scripts/app.js"></script>
    <script src="../../scripts/polygonCtr.js"></script>
    
    <script language="javascript" type="text/javascript">
       
     
       /* var tmID;*/


        $(document).ready(function () {
            /*  debugger;*/
            // Handler for .ready() called. $("#btn
     
          //  $("#button1").click(OnUpload);
           
       
           


        });
      /*  function OnUpload(evt) {
          
        }*/

    /*    app.directive('fileUpload', function () {
            return {
                scope: true,        //create a new scope
                link: function (scope, el, attrs) {
                    el.bind('change', function (event) {
                        var files = event.target.files;
                        //iterate files since 'multiple' may be specified on the element
                        for (var i = 0; i < files.length; i++) {
                            //emit event upward
                            scope.$emit("fileSelected", { file: files[i] });
                        }
                    });
                }
            };
        });*/

   
 
   




 
   
 
 

 
 var ButtonsCtrl = function ($scope) {

     $scope.singleModel = 1;

     $scope.radioModel = 'Middle';
     $scope.singleModel = "הגדרת פרויקט";
     $scope.checkModel = {
         left: false,
         middle: true,
         right: false
     };
 };

        
 $(function () {
 
  /*  $("#StartDate").datepicker();
     $("#StartDate").datepicker("option", "dateFormat", "dd/mm/yy");*/
    
    

   
 });
    </script>

<style>

     #mydiv { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; background-color: grey; opacity: .8; }
        .ajax-loader { position: absolute; left: 50%; top: 50%; margin-left: -32px; /* -1 * image width / 2 */ margin-top: -32px; /* -1 * image height / 2 */ display: block; }

    .clsHeader
{
	font-family:Arial;
	font-size:12px;
	color:#ffffff;
	font-weight:bold;
	background:#B50027;
}

.clsHeaderLight
{
	font-family:Arial;
	font-size:12px;
	color:#B50027;
	font-weight:bold;
	background:#ffffff;
}

.clsFieldHeader
{
	font-family:Arial;
	font-size:11px;
	color:#000000;
    
/*	font-weight:bold;*/
	background:#ffffff;
}
 .css-form input.ng-invalid.ng-dirty {
        background-color: #FA787E;
      }
    
      .css-form input.ng-valid.ng-dirty {
        background-color: #78FA89;
      }
.MeasureData
{
  /*  background-color: #DCDCDC;*/
    color: black;
    font-family: Arial;
    font-size:11px;
}
.clsTextRegular
{
	font-family:Arial;
	font-size:12px;
	color:#000000;
	font-weight:normal;
	background:#ffffff;
}

    .combo
    {
        width:130px;
    }
    .textbox
    {
        width:130px;
    }
</style>
</head>
    
<body  dir="rtl" >

    <form id="polygonform" name="polygonform"  runat="server" ng-app="IGIS"   ng-controller="polygonController"  >
    
     <input id="px1" name="px1" type="hidden" runat="server"  ng-model="Polygon.StartDate"/>
      <input id="py1" name="py1" type="hidden" runat="server"  />
    
        
        

    
     <h4>תיאור הפוליגון</h4>
   <pre>הגדרת הפרויקט</pre>
  
    
   

       <!-- <div ng-controller="AlertDemoCtrl">
  <alert ng-repeat="alert in alerts" type="alert.type" close="closeAlert($index)">{{alert.msg}}</alert>
  <button class='btn' ng-click="addAlert()">Add Alert</button>
</div>-->
<div class="container" >
    
     <!--<div id="mydiv" ng-show="loading">
            <img src="Images/482.gif" class="ajax-loader" />
        </div>
    <strong class="error">{{waitMessage}}</strong>
      
     -->
   <div id="waitDialog" ng-show="waitMessage"  class="shadow">
    <div  class="error">{{waitMessage}}</div>
  
         <div id="Div1" data-ng-show="loading">
            <!--<img src="Images/482.gif" class="ajax-loader" />-->
                <img src="Images/482.gif" class="ajax-loader" />
        </div>
</div> 


<!--<div id="dialog-overlay" ng-show="message || waitMessage"></div>-->
    <div>
        <div class="clsFieldHeader">תאריך פתיחה :</div>
        <div class="MeasureData"><input runat="server"  class="textbox" id="StartDate"  ng-model="Polygon.StartDate"  datepicker /></div>
        
           <div class="clsFieldHeader">מס' פרויקט :</div>
        <div class="MeasureData">  <input runat="server" class="textbox" id="ProjectNum" ng-model="Polygon.ProjectNum"/></div>

            <div class="clsFieldHeader">שם פרויקט :</div>
        <div class="MeasureData">   <input runat="server" class="textbox" name="ProjectName" id="ProjectName" ng-model="Polygon.ProjectName" required />
             <br/>
           
           <span   class="label label-important" ng-show="polygonform.ProjectName.$error.required">שדה חובה 
        </span>
        </div>

              <div class="clsFieldHeader">סוג אתר  :</div>
        <div class="MeasureData">  <asp:DropDownList ID="drpSiteTypes" runat="server" CssClass="combo" ng-model="Polygon.SiteTypeID" required ></asp:DropDownList>
               <span   class="label label-important" ng-show="polygonform.drpSiteTypes.$error.required">שדה חובה 
        </span></div>

          <div class="clsFieldHeader">תיאור הפרויקט:</div>
        <div class="MeasureData">   <input type="text" id="ProjectDesc"  runat="server" class="textbox" ng-model="Polygon.ProjectDesc" required>
            <br ng-show="polygonform.ProjectDesc.$error.required"/> 
            <span   class="label label-important" ng-show="polygonform.ProjectDesc.$error.required">שדה חובה 
        </span></div>



         <div class="clsFieldHeader"> קדימות :</div>
        <div class="MeasureData"> <asp:DropDownList ID="DrpPriority" runat="server" CssClass="combo"  ng-model="Polygon.PriorityID" required></asp:DropDownList>
             <br ng-show="polygonform.DrpPriority.$error.required"/> 
            <span   class="label label-important" ng-show="polygonform.DrpPriority.$error.required">שדה חובה 
        </span></div>


        <div class="clsFieldHeader"> סטטוס ביצוע :</div>
        <div class="MeasureData">  <asp:DropDownList ID="DrpPrefStatus" runat="server" CssClass="combo" ng-model="Polygon.PerfStatusID" required></asp:DropDownList>
     
              <br ng-show="polygonform.DrpPrefStatus.$error.required"/> 
            <span   class="label label-important" ng-show="polygonform.DrpPrefStatus.$error.required">שדה חובה 
        </span> </div>


        <div class="clsFieldHeader"> איש מתאם חץ :</div>
        <div class="MeasureData">     <asp:DropDownList ID="DrpCoordinator" runat="server" CssClass="combo" ng-model="Polygon.CoordinatorID" reuired></asp:DropDownList>
              <br ng-show="polygonform.DrpCoordinator.$error.required"/> 
            <span   class="label label-important" ng-show="polygonform.DrpCoordinator.$error.required">שדה חובה 
        </span> </div>


        <div class="clsFieldHeader">הערות :</div>
        <div class="MeasureData">  <input type="text" id="Comment"  runat="server"  class="textbox" ng-model="Polygon.Comment"> </div>


        <div class="clsFieldHeader">  גוף מזמין :</div>
        <div class="MeasureData"><asp:DropDownList ID="DrpOrderer" runat="server" CssClass="combo" ng-model="Polygon.OrdererID"></asp:DropDownList> </div>


        <div class="clsFieldHeader">איש קשר :</div>
        <div class="MeasureData"> <input type="text" id="ContactOrderer" runat="server" class="textbox" ng-model="Polygon.ContactOrderer" > </div>

        <div class="clsFieldHeader">גוף שלם :</div>
        <div class="MeasureData">      <asp:DropDownList ID="DrpSponsor" runat="server" CssClass="combo" ng-model="Polygon.SponsorID"></asp:DropDownList>
        </div>

         <div class="clsFieldHeader">איש קשר מתוך גוף משלם :</div>
        <div class="MeasureData">   <input type="text" id="ContactSponsor" runat="server" class="textbox" ng-model="Polygon.ContactSponsor" > </div>
         
        
        
        <div class="clsFieldHeader"> הצמד מסמכים :</div>
        <div class="MeasureData">
          <input id="file1" name="file1" type="file" multiple="multiple" value"" title= /><br />
        <input id="button1" type="button" value="Upload" ng-click="upload()" />

             
    
    
     <div ng-repeat="Attachme in filesdone">
  
  
   <a href="/hetz/uploads/{{Attachme}}" target="_blank" >{{Attachme}}</a>
</div> </div>

       
    </div>
    <div>   
            <input  id="Button2" type="button" value="שמור" class="btn btn-primary"  ng-click="save()"
              ng-disabled="polygonform.$invalid || !polygonform.$dirty "
             
              />
          <input  id="btnsave" type="button" value="נקה" class="btn btn-primary" ng-click="clear()" />


    </div>

    
              <div  class="alert alert-error" ng-show="polygonform.$invalid ">נא למלא שדות חובה.</div>
            <div class="label label-warning" ng-show="!polygonform.$dirty ">ערכים בשדות לא השתנו.</div>
             
         
               <div ng-show="success">
  
  <span class="label label-success" ng-show="success">{{message}}</span>
</div> 
    
 
   
    </div>
</form>



</body>
</html>
